Skip to content

feat(models): add grok-composer-2.5-fast to xAI model list#36968

Open
lidge-jun wants to merge 2 commits into
NousResearch:mainfrom
lidge-jun:feat/grok-composer-2.5-fast
Open

feat(models): add grok-composer-2.5-fast to xAI model list#36968
lidge-jun wants to merge 2 commits into
NousResearch:mainfrom
lidge-jun:feat/grok-composer-2.5-fast

Conversation

@lidge-jun
Copy link
Copy Markdown
Contributor

Summary

  • Adds x-ai/grok-composer-2.5-fast to the xAI model list in hermes_cli/models.py
  • This model is live on xAI /v1/chat/completions with reasoning_content support
  • It is Grok Build's composer model for agentic code composition
  • Not yet listed in /v1/models or /v1/language-models but responds to direct calls

Test plan

  • Verify hermes auth add xai-oauthhermes run --model x-ai/grok-composer-2.5-fast works
  • Confirm model appears in hermes models output

🤖 Generated with Claude Code

grok-composer-2.5-fast is live on xAI /v1/chat/completions.
It supports reasoning_content and is Grok Build's composer model
for agentic code composition. Not yet listed in /v1/models but
responds to direct chat/completions calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lidge-jun
Copy link
Copy Markdown
Contributor Author

CI note: test (5) failure is a pre-existing flaky shard — this PR only adds one line to hermes_cli/models.py and does not touch test code. The other 22/23 checks pass.

I've verified grok-composer-2.5-fast is live on xAI /v1/chat/completions with tool_use and reasoning_content support.

The CI test_model_catalog check requires the JSON manifest to be in
sync with _PROVIDER_MODELS. Running build_model_catalog.py adds the
new x-ai/grok-composer-2.5-fast entry.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lidge-jun
Copy link
Copy Markdown
Contributor Author

Update: CI fix pushed + behavior proof

CI fix (second commit)

The test (5) failure was our fault, not a pre-existing flaky shard:

FAILED tests/hermes_cli/test_model_catalog.py::TestManifestMatchesInRepoLists::test_in_repo_lists_match_manifest
AssertionError: website/static/api/model-catalog.json is out of sync with _PROVIDER_MODELS['nous']

Adding x-ai/grok-composer-2.5-fast to models.py without regenerating model-catalog.json caused the manifest sync check to fail. Fixed by running python scripts/build_model_catalog.py and committing the regenerated JSON.

Second commit: f9c29f4 — rebuilds model-catalog.json with the new entry.

Live behavior proof

Tested on macOS with progrok OAuth session, June 2, 2026:

Chat completion with reasoning:

model: grok-composer-2.5-fast
reasoning_content: "Okay, the user wants me to write a fibonacci function..."
content: "def fibonacci(n: int) -> int: ..."
usage: 1190 tokens, cost_in_usd_ticks: 23566000
finish_reason: stop

Function calling (tool_use):

{
  "tool_calls": [{
    "id": "call-...-composer_call_EYkpf",
    "function": {
      "name": "generate_image",
      "arguments": "{\"prompt\":\"A breathtaking sunset...\"}"
    }
  }],
  "finish_reason": "tool_calls"
}

Capabilities verified:

  • /v1/chat/completions — HTTP 200
  • reasoning_content — returned in message
  • tool_use with forced tool_choice — returns tool_calls
  • ✅ System prompt, multi-turn, temperature control
  • ❌ Not listed in /v1/models (hidden model)
  • stop sequences — HTTP 400 (unsupported)
  • 💰 Pricing: ~$1.00/M input, ~$2.00/M output

Adoption

Already live in:

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard provider/xai xAI (Grok) labels Jun 2, 2026
@QDaed
Copy link
Copy Markdown

QDaed commented Jun 4, 2026

really need this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have provider/xai xAI (Grok) type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants